package com.sky.service.common;

import com.sky.dto.DishDTO;
import com.sky.dto.DishPageQueryDTO;
import com.sky.pojo.Dish;
import com.sky.result.PageResult;
import com.sky.result.Result;
import com.sky.vo.DishVO;

import java.util.List;

/**
 * @Author:zhq
 * @Date: 2025/08/18 11:15
 * @Description:
 */
public interface DishService {
    Result<String> addWithFlavor(DishDTO dishDTO);

    PageResult pageQuery(DishPageQueryDTO dishPageQueryDTO);

    void deleteBatch(List<Long> ids);

    Result<DishVO> findByIdWithFlavors(Long id);

    Result<String> updateWithFlavors(DishDTO dishDTO);

    Result<List<Dish>> findByCategoryId(Long categoryId);
}
